package com.jwell.panrank.contract

import com.jwell.cargoapp.ui.base.IBaseView
import com.jwell.driverapp.tools.BaseSubscriber


/**
 * Created by 76577 on 2018/4/10.
 * 各种搜索，搜索司机、发货单位、收货单位等等
 */
class SearchContract {
    interface View : IBaseView {
        fun showSearchBenList(data: List<Any>)
    }

    interface Presenter {
        //查询产品
        fun appGetProList(filter: String?, type: Int)

        //查询收发货单位
        fun appGetUnitInformationList(filter: String?)

        //查询司机
        fun getDriverList(filter: String?)

        //查询合同号
        fun getContractList(filter: String?)
    }

    interface Model {
        //查询产品
        fun appGetProList(filter: String?, type: Int, baseSubscriber: BaseSubscriber)

        //查询收发货单位
        fun appGetUnitInformationList(filter: String?, baseSubscriber: BaseSubscriber)

        //查询司机
        fun getDriverList(filter: String?, baseSubscriber: BaseSubscriber)

        //查询合同号
        fun getContractList(filter: String?, baseSubscriber: BaseSubscriber)
    }
}